<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<script type="text/javascript" src="../../zxt/zxt.js"></script>
  <script>importZXT("../../zxt");</script>	
</head>

<body>

	<div id="textarea1" zxt="zxt.ui.TextArea" zxt.required="true" zxt.tip="Please input!" zxt.value="" zxt.height="100px"></div>
	
	<table>
		<tr>
			<td width="20%">getType()</td>
			<td width="50%">返回控件类型</td>
			<td><input type="button" name="getType" value="getType" 
				onclick="alert('多行文本框控件的type为'+$zxtUI.textarea1.getType());"/></td>
		</tr>
		
		<tr>
			<td>getValue()</td>
			<td>返回文本框中输入的字符串</td>
			<td><input type="button" name="getValue" value="getValue" 
				onclick="alert('多行文本框控件的getValue为'+$zxtUI.textarea1.getValue());"/></td>
		</tr>
		
		<tr>
			<td>renderValue(v)</td>
			<td>给输入框赋值</td>
			<td><input type="button" name="renderValue" value="renderValue" 
				onclick="$zxtUI.textarea1.renderValue('012');alert('多行文本框控件赋值为012');"/></td>
		</tr>
		<tr>
			<td>enable(v) </td>
			<td>设置和返回输入框是否可用</td>
			<td><input type="button" name="enable" value="enable" 
				onclick="$zxtUI.textarea1.enable(false);"/></td>
		</tr>
		
	</table>
	
	<div><a href="../index.html">返回</a></div>
</body>
</html>




<script>
	$zxt.init();

</script>


